package com.yunhe.history.domain.data;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 量测对象
 *
 * @author liuronglei
 */
@ApiModel(value = "Measurement", description = "量测对象")
public class Measurement {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long pointNumber;
    @ApiModelProperty(value = "时间", example = "2017-12-06 00:00:00")
    private String dtime;
    @ApiModelProperty(value = "量测值")
    private Double val;
    @ApiModelProperty(value = "数据标识")
    private Integer flag;
    private Long rtime;

    public Long getPointNumber() {
        return pointNumber;
    }

    public void setPointNumber(Long pointNumber) {
        this.pointNumber = pointNumber;
    }

    public String getDtime() {
        return dtime;
    }

    public void setDtime(String dtime) {
        this.dtime = dtime;
    }

    public Double getVal() {
        return val;
    }

    public void setVal(Double val) {
        this.val = val;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Long getRtime() {
        return rtime;
    }

    public void setRtime(Long rtime) {
        this.rtime = rtime;
    }
}
